package SE2;

import java.util.GregorianCalendar;

//Max
public class Component
{
	private int id;
	private String producer;
	private String name;
	private int amount;
	private GregorianCalendar deliveryDate;
	
	Component(String p_producer,String p_name,int p_amount)
	{
		this.producer = p_producer;
		this.name = p_name;
		this.amount = p_amount;
	}
	
	Component(String p_producer,String p_name,int p_amount, int orderTime)
	{
		this.producer = p_producer;
		this.name = p_name;
		this.amount = p_amount;
		GregorianCalendar cal = new GregorianCalendar();
		cal.add(GregorianCalendar.DAY_OF_MONTH, orderTime);
		this.deliveryDate = cal;
	}

	public int getId()
	{
		return id;
	}

	public String getProducer()
	{
		return producer;
	}

	public String getName()
	{
		return name;
	}

	public int getAmount()
	{
		return amount;
	}

	public GregorianCalendar getDeliveryDate()
	{
		return deliveryDate;
	}

	public void setDeliveryDate(GregorianCalendar deliveryDate)
	{
		this.deliveryDate = deliveryDate;
	}
	
	
}
